all : build package
build:
	rm -rf dist
	python -m nuitka main.py --standalone --mingw64 --follow-import-to=app --plugin-enable=tk-inter --include-data-dir=resources=resources --windows-icon-from-ico=resources\converter.ico --windows-disable-console --output=output --remove-output
	mkdir dist
	cp -r ./output/main.dist ./dist/bin
	cp ./tools/run.bat ./dist/run.bat
	rm -rf output

package:
	cd dist && ../tools/WinRar.exe a -sfx -z../tools/setup.cfg -iicon./bin/resources/converter.ico xls2xlsx.exe @../tools/package.list
	cd dist && rm -rf bin && rm run.bat